package com.spsy.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spsy.common.core.annotation.Excel;
import com.spsy.common.core.web.domain.BaseEntity;

/**
 * 订单对象 order
 * 
 * @author arhat
 * @date 2024-12-17
 */
@Builder
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 订单所属人 */
    @Excel(name = "订单所属人")
    private Long userId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 订单状态，1：待支付，2：待支付，3：已支付，4：已取消 */
    @Excel(name = "订单状态，1：待支付，2：待支付，3：已支付，4：已取消")
    private Long ordersStatus;

    /** 退款状态 1退款中 2退款成功 3退款失败 */
    @Excel(name = "退款状态 1退款中 2退款成功 3退款失败")
    private Long refundStatus;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long purNum;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal totalAmount;

    /** 实际支付金额 */
    @Excel(name = "实际支付金额")
    private BigDecimal realPayAmount;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private String cityCode;

    /** 服务详细地址 */
    @Excel(name = "服务详细地址")
    private String serveAddress;

    /** 联系人手机号 */
    @Excel(name = "联系人手机号")
    private String contactsPhone;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contactsName;

    /** 服务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serveStartTime;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date evaluationTime;

    /** 评价状态 0:未评价  1:已评价 */
    @Excel(name = "评价状态 0:未评价  1:已评价")
    private Long evaluationStatus;

    /** 支付渠道 */
    @Excel(name = "支付渠道")
    private String tradingChannel;

    /** 用户端是否展示，1：展示，0：隐藏 */
    @Excel(name = "用户端是否展示，1：展示，0：隐藏")
    private Long display;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setOrdersStatus(Long ordersStatus) 
    {
        this.ordersStatus = ordersStatus;
    }

    public Long getOrdersStatus() 
    {
        return ordersStatus;
    }
    public void setRefundStatus(Long refundStatus) 
    {
        this.refundStatus = refundStatus;
    }

    public Long getRefundStatus() 
    {
        return refundStatus;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPurNum(Long purNum) 
    {
        this.purNum = purNum;
    }

    public Long getPurNum() 
    {
        return purNum;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setRealPayAmount(BigDecimal realPayAmount) 
    {
        this.realPayAmount = realPayAmount;
    }

    public BigDecimal getRealPayAmount() 
    {
        return realPayAmount;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setServeAddress(String serveAddress) 
    {
        this.serveAddress = serveAddress;
    }

    public String getServeAddress() 
    {
        return serveAddress;
    }
    public void setContactsPhone(String contactsPhone) 
    {
        this.contactsPhone = contactsPhone;
    }

    public String getContactsPhone() 
    {
        return contactsPhone;
    }
    public void setContactsName(String contactsName) 
    {
        this.contactsName = contactsName;
    }

    public String getContactsName() 
    {
        return contactsName;
    }
    public void setServeStartTime(Date serveStartTime) 
    {
        this.serveStartTime = serveStartTime;
    }

    public Date getServeStartTime() 
    {
        return serveStartTime;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setEvaluationTime(Date evaluationTime) 
    {
        this.evaluationTime = evaluationTime;
    }

    public Date getEvaluationTime() 
    {
        return evaluationTime;
    }
    public void setEvaluationStatus(Long evaluationStatus) 
    {
        this.evaluationStatus = evaluationStatus;
    }

    public Long getEvaluationStatus() 
    {
        return evaluationStatus;
    }
    public void setTradingChannel(String tradingChannel) 
    {
        this.tradingChannel = tradingChannel;
    }

    public String getTradingChannel() 
    {
        return tradingChannel;
    }
    public void setDisplay(Long display) 
    {
        this.display = display;
    }

    public Long getDisplay() 
    {
        return display;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("ordersStatus", getOrdersStatus())
            .append("refundStatus", getRefundStatus())
            .append("price", getPrice())
            .append("purNum", getPurNum())
            .append("totalAmount", getTotalAmount())
            .append("realPayAmount", getRealPayAmount())
            .append("discountAmount", getDiscountAmount())
            .append("cityCode", getCityCode())
            .append("serveAddress", getServeAddress())
            .append("contactsPhone", getContactsPhone())
            .append("contactsName", getContactsName())
            .append("serveStartTime", getServeStartTime())
            .append("payTime", getPayTime())
            .append("evaluationTime", getEvaluationTime())
            .append("evaluationStatus", getEvaluationStatus())
            .append("tradingChannel", getTradingChannel())
            .append("display", getDisplay())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
